package com.wyvoid.forum.service.impl;

import com.wyvoid.forum.service.IAdminGroupService;
import com.wyvoid.forum.domain.AdminGroup;
import com.wyvoid.forum.dao.IAdminGroupDAO;

/**
 * Created by IntelliJ IDEA.
 * User: qijing
 * Date: 2007-7-10
 * Time: 9:36:01
 * To change this template use File | Settings | File Templates.
 */
public class AdminGroupService implements IAdminGroupService {
    private IAdminGroupDAO adminGroupDAO;

    public IAdminGroupDAO getAdminGroupDAO() {
        return adminGroupDAO;
    }

    public void setAdminGroupDAO(IAdminGroupDAO adminGroupDAO) {
        this.adminGroupDAO = adminGroupDAO;
    }

    public AdminGroup getAdminGroup(long id) {
        return adminGroupDAO.getAdminGroup(id);
    }

    public void updateAdminGroup(long id, String permissions) {
        adminGroupDAO.updateAdminGroup(id,permissions);
    }
}
